package com.starblink.android.basic.base.fragment

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.starblink.android.basic.base.BaseViewModel
import com.starblink.basic.util.NetWorkUtil

abstract class BaseTVMLoadingFragment<T : ViewBinding, VM : BaseViewModel> : AbsLoadingBaseVMFragment<VM>() {

    protected lateinit var viewBinding: T

    abstract fun getViewBinding(
        inflater: LayoutInflater,
        container: ViewGroup?
    ): T


    override fun setContentView(inflater: LayoutInflater, container: ViewGroup?): View {
        viewBinding = getViewBinding(inflater, container)
        return viewBinding.root
    }

    override fun onNetworkConnectionChanged(
        isConnected: Boolean,
        networkType: NetWorkUtil.NetworkType?
    ) {
    }


}